package com.woke.fragment;

import java.util.ArrayList;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class DingqiFragment extends ViewPagerFragment{
	private ArrayList<Fragment> data;
	private LocalPagerAdapter localPagerAdapter;
	public static DingqiFragment homeViewPagerFragment;
	private String[] titles = { "投标中", " 回款中 ", " 回款完 "," 全部 "};
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		return super.onCreateView(inflater, container, savedInstanceState);
	}
	
	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onActivityCreated(savedInstanceState);
		data = new ArrayList<Fragment>();
		data.add(new Dingqi_ingFragment());
		data.add(new Dingqi_backFragment());
		data.add(new Dingqi_backedFragment());
		data.add(new Dingqi_allFragment());
		localPagerAdapter = new LocalPagerAdapter(getChildFragmentManager(), data, titles);
		homeViewPagerFragment = this;
		setViewPagerAdapter(localPagerAdapter);
	}
	
	

	@Override
	protected void onPageSelected(int position) {
		// TODO Auto-generated method stub
		
	}
	
}
